package com.zking.ssm.DYM.service.impl;

import com.zking.ssm.DYM.mapper.HotelCouponsBreakfastMapper;
import com.zking.ssm.DYM.model.HotelCouponsBreakfast;
import com.zking.ssm.DYM.service.IHotelCouponsBreakfaseService;
import com.zking.ssm.util.PageBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description
 * @Author XXXXX
 * @Date 2021/01/23 10:38
 */
@Service
public class HotelCouponsBreakfaseServiceImpl implements IHotelCouponsBreakfaseService {
    @Autowired
    private HotelCouponsBreakfastMapper hotelCouponsBreakfastMapper;

    @Override
    public int deleteByPrimaryKey(Long id) {
        return hotelCouponsBreakfastMapper.deleteByPrimaryKey(1L);
    }

    @Override
    public int insert(HotelCouponsBreakfast record) {
        return hotelCouponsBreakfastMapper.insert(record);
    }

    @Override
    public HotelCouponsBreakfast selectByPrimaryKey(Long id) {
        return hotelCouponsBreakfastMapper.selectByPrimaryKey(1L);
    }

    @Override
    public int updateByPrimaryKey(HotelCouponsBreakfast record) {
        return hotelCouponsBreakfastMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<HotelCouponsBreakfast> list(HotelCouponsBreakfast record, PageBean pageBean) {
        List<HotelCouponsBreakfast> hotelCouponsBreakfastList = hotelCouponsBreakfastMapper.list(record);
        return hotelCouponsBreakfastList;
    }
}
